package com.xydtech.ecard.custgroup.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 行业客户配置对象 ecard_customer_group_info
 *
 * @author yuzhiguo
 * @date 2024-11-27 下午3:50
 */
public class EcardApiCustomerGroupInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 客群类型 */
    @Excel(name = "客群类型", dictType = "ecard_customer_group_type")
    private String customerGroupType;

    /** 客群名称 */
    @Excel(name = "客群名称")
    private String customerGroupName;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 创建人ID */
    private Long creatorId;

    /** 法人机构ID */
    private Long deptId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String userName;

    /** 法人机构 */
    @Excel(name = "法人机构")
    private String deptName;

    /** 状态0停用,1启用 */
    private Integer state;

    /** 状态0停用,1启用 */
    @Excel(name = "状态")
    private String stateName;

    /** 客户数量 */
    private String custNumber;

    /** 字典机构查询条件 */
    private Long dictDeptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCustomerGroupType(String customerGroupType)
    {
        this.customerGroupType = customerGroupType;
    }

    public String getCustomerGroupType()
    {
        return customerGroupType;
    }
    public void setCustomerGroupName(String customerGroupName)
    {
        this.customerGroupName = customerGroupName;
    }

    public String getCustomerGroupName()
    {
        return customerGroupName;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getCustNumber() {
        return custNumber;
    }

    public void setCustNumber(String custNumber) {
        this.custNumber = custNumber;
    }

    public Long getDictDeptId() {
        return dictDeptId;
    }

    public void setDictDeptId(Long dictDeptId) {
        this.dictDeptId = dictDeptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("customerGroupType", getCustomerGroupType())
                .append("customerGroupName", getCustomerGroupName())
                .append("sort", getSort())
                .append("creatorId", getCreatorId())
                .append("deptId", getDeptId())
                .append("creationTime", getCreationTime())
                .append("state", getState())
                .append("remark", getRemark())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .append("stateName", getStateName())
                .append("custNumber", getCustNumber())
                .append("dictDeptId", getDictDeptId())
                .toString();
    }
}
